﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    [DataContract]
    [MB.Orm.Mapping.Att.ModelMap("LMLocationInventory", "LMLocationInventory", new string[] { "batch_no" })]
    [KnownType(typeof(LocationInventoryInfo))]
    //在线库存信息
    public class OnlineStockInfo:MB.Orm.Common.BaseModel
    {
        public OnlineStockInfo()
        {

        }
        //WOC商品编码
        private string _goods_sn;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("goods_sn", System.Data.DbType.String)]
        public string goods_sn
        {
            get { return _goods_sn;  } 
            set { _goods_sn = value; }
        }
        //商品批次号
        private string _batch_no;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("batch_no", System.Data.DbType.String)]
        public string batch_no
        {
            get { return _batch_no; }
            set { _batch_no = value; }
        }
        //库存数
        private int _real_stock;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("real_stock", System.Data.DbType.Int32)]
        public int real_stock
        {
            get { return _real_stock; }
            set { _real_stock = value; }
        }
        //截止有效日期
        private DateTime _expiry_date;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("expiry_date", System.Data.DbType.Date)]
        public DateTime expiry_date
        {
            get { return _expiry_date; }
            set { _expiry_date = value; }
        }
        //备注（类型）
        private string _stock_memo;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("stock_memo", System.Data.DbType.String)]
        public string stock_memo
        {
            get { return _stock_memo; }
            set { _stock_memo = value; }
        }
        //有效期
        private string _stock_date;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("stock_date", System.Data.DbType.String)]
        public string stock_date
        {
            get { return _stock_date; }
            set { _stock_date = value; }
        }
        //库存开始日期
        private string _stock_datebegin;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("stock_datebegin", System.Data.DbType.String)]
        public string stock_datebegin
        {
            get { return _stock_datebegin; }
            set { _stock_datebegin = value; }
        }
        //库存结束日期
        private string _stock_dateend;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("stock_dateend", System.Data.DbType.String)]
        public string stock_dateend
        {
            get { return _stock_dateend; }
            set { _stock_dateend = value; }
        }
         
    }
}
